import Vue from "vue";
import Vuex from "vuex";

import cityModule from "./city";
import detailModule from "./detail";
import ratedModule from "./rated";

Vue.use(Vuex);

// 创建仓库实例
const store = new Vuex.Store({
  modules: {
    city: cityModule,
    detail: detailModule,
    rated: ratedModule,
  },
});

export default store;
